package com.ys.nms.module.business.controller.admin.alerts.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.ys.nms.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.ys.nms.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 报警分页 Request VO")
@Data
public class AlertsPageReqVO extends PageParam {

    @Schema(description = "设备ID", example = "15704")
    private Integer deviceId;

    @Schema(description = "对应的规则ID", example = "9672")
    private Integer ruleId;

    @Schema(description = "报警状态0已解决1未解决")
    private Integer state;

    @Schema(description = "0未通知1已通知")
    private Integer alerted;

    @Schema(description = "0关闭1开放")
    private Integer open;

    @Schema(description = "备注")
    private String note;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] timestamp;

    @Schema(description = "报警详情")
    private String info;

}